package cn.ll.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Regions entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "regions", catalog = "lldb")
public class Regions implements java.io.Serializable {

	// Fields

	private Integer id;
	private String regionname;
	private Integer parentid;
	private Integer rootid;
	private Integer level;

	// Constructors

	/** default constructor */
	public Regions() {
	}

	/** full constructor */
	public Regions(String regionname, Integer parentid, Integer rootid, Integer level) {
		this.regionname = regionname;
		this.parentid = parentid;
		this.rootid = rootid;
		this.level = level;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "regionname", length = 50)
	public String getRegionname() {
		return this.regionname;
	}

	public void setRegionname(String regionname) {
		this.regionname = regionname;
	}

	@Column(name = "parentid")
	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	@Column(name = "rootid")
	public Integer getRootid() {
		return this.rootid;
	}

	public void setRootid(Integer rootid) {
		this.rootid = rootid;
	}

	@Column(name = "level")
	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

}